import { get, set, del } from '@/utils/db.js'

const tokenKey = "userToken"

export function getToken() {
	return get(tokenKey)
}

export function setToken(token) {
	return set(tokenKey, token)
}

export function removeToken() {
	return del(tokenKey);
}

const userNameKey = "userName";

export function getUserName(){
	return get(userNameKey);
}

export function setUserName(username) {
	return set(userNameKey, username);
}

export function removeUserName() {
	return del(userNameKey);
}
